using UnityEngine;
using UnityEngine.UI;
using System.Collections;

public class InfoPanel : HUDPanel
{
	public Text strength;
	public Text precision;
	public Text defense;
	public Text initiative;
	public Text speed;

	public override void UpdatePanel(Character _character)
	{
		CharacterInfo info = _character.GetInfo<CharacterInfo>();
		strength.text = info.GetStatString(StatType.Strength);
		precision.text = info.GetStatString(StatType.Precision);
		defense.text = info.GetStatString(StatType.Defense);
		initiative.text = info.GetStatString(StatType.Initiative);
		speed.text = info.GetStatString(StatType.Speed);
	}
}
